package com.guigu.qingcheng.orderservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.qingcheng.pojo.order.TbOrderItem;
import com.guigu.qingcheng.utils.R;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2020-07-08
 */
public interface TbOrderItemService extends IService<TbOrderItem> {
    R findPage (@RequestParam("page") Integer page, @RequestParam("size") Integer size, @RequestBody Map<String,Object> searchMap );

    /**
     * 通过订单编号来查询商品记录
     * @param id
     * @return
     */
    List<TbOrderItem> findByOrderId(String id);

    List<Map> findByOrderIdlj(String id);

    R updates (List<TbOrderItem> tbOrderItems, String id);

}
